﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Sio.Mdm.Entities;

namespace IDM.Types.Administration
{
    [EntityService(typeof(void))]
    public class User : EntityBase<User>
    {
        private int _id = -1;
        [PrimaryKey(Access=PropertyAccess.ReadOnly)]
        public int ID
        {
            get
            {
                return _id;
            }
        }

        private string _userName;
        [Property(Unique=true)]
        public string Username
        {
            get
            {
                return _userName;
            }
            set
            {
                _userName = value;
            }
        }
    }
}
